package cn.com.cfae.iras.doc.analyze.parse.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by 佟媛媛 on 18/11/3.
 * 在建工程
 */
public class ZJGCModel extends BizBaseModel {

    public static String MODEL_NAME = "ZJGC";
    private static Map<String, String> items = new HashMap<>();

    /**
     * 项目名称
     */
    private static String XMMC = "XMMC";

    /**
     * 投资金额
     */
    private static String TZJE = "TZJE";

    /**
     * 已投资金额
     */
    private static String YTZJE = "YTZJE";

    /**
     * 资本金
     */
    private static String ZBJ = "ZBJ";


    /**
     * 合规性
     */
    private static String HGX = "HGX";

    static {
        items.put(XMMC,"项目名称");
        items.put(TZJE,"投资金额|总投资|计划总投资");
        items.put(YTZJE,"已投资金额|已投资额|已投资额度|已投入金额");
        items.put(ZBJ,"资本金|自有资本金|自筹资金");
        items.put(HGX,"合规性|环评立项|有权部门审批情况");
    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem = new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }


}
